

<div class="layui-form"  lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="padding: 20px 0 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">登录名</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" id="loginName" name="loginName" value="{{ d.params.LoginName || '' }}" lay-verify="required" placeholder="请输入登录名" autocomplete="off" class="layui-input">
      </script>
    </div>
    <script type="text/html" template>
        <input type="hidden" id="id" name="id" value="{{ d.params.id || '' }}"  placeholder="请输入登录名" autocomplete="off" class="layui-input">
      </script>
    <script type="text/html" template>
        <input type="hidden" id="isLockout" name="isLockout" value="{{ d.params.isLockout || '' }}"  placeholder="请输入登录名" autocomplete="off" class="layui-input">
      </script>
    <script type="text/html" template>
        <input type="hidden" id="lastLoginTime" name="lastLoginTime" value="{{ d.params.lastLoginTime || '' }}"  placeholder="请输入登录名" autocomplete="off" class="layui-input">
      </script>
    <script type="text/html" template>
        <input type="hidden" id="lockTime" name="lockTime" value="{{ d.params.lockTime || '' }}"  placeholder="请输入登录名" autocomplete="off" class="layui-input">
      </script>
    <script type="text/html" template>
        <input type="hidden" id="createTime" name="createTime" value="{{ d.params.createTime || '' }}"  placeholder="请输入登录名" autocomplete="off" class="layui-input">
      </script>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" id="passWord" name="passWord" value="{{ d.params.passWord || '' }}" lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">邮箱</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" id="proTectEmail" name="proTectEmail" value="{{ d.params.proTectEmail || '' }}" lay-verify="required" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">手机号码</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" id="protectMtel" name="protectMtel" value="{{ d.params.protectMtel || '' }}" lay-verify="required" placeholder="请输入手机号" autocomplete="off" class="layui-input" >
      </script>
    </div>
    <!-- <button style="float: left;" type="button" class="layui-btn" id="layuiadmin-upload-useradmin">上传图片</button>  -->
  </div>
<!--   <div class="layui-form-item" lay-filter="sex">
    <label class="layui-form-label">选择性别</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="radio" name="sex" value="男" title="男" {{ d.params.sex === '男' ? 'checked' : '' }}>
        <input type="radio" name="sex" value="女" title="女" {{ d.params.sex === '女' ? 'checked' : '' }}>
      </script>
    </div>
  </div> -->
  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
      <input type="button" lay-submit lay-filter="LAY-user-front-submit" value="确认" class="layui-btn">
    </div>
  </div>
</div>

<script>
layui.use(['admin', 'form', 'upload'], function(){
  var $ = layui.$
  ,form = layui.form
  ,upload = layui.upload;
  
  //上传头像
  upload.render({
    elem: '#layuiadmin-upload-useradmin'
    ,url: './json/upload/demo.js'
    ,accept: 'images'
    ,method: 'get'
    ,acceptMime: 'image/*'
    ,done: function(res){
      $(this.item).prev("div").children("input").val(res.data.src)
    }
  });
})
</script>